package com.tangcan.blog.Mapper;

import com.tangcan.blog.Entity.BlogImg;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface BlogImgMapper {

    @Select("SELECT ImgData FROM BlogImg WHERE Id = #{Id}")
    String GetImgById(String Id);

    @Insert("INSERT INTO BlogImg (Id,ImgData,UserId) VALUES(#{Id},#{ImgData},#{UserId})")
    int InsertImg (BlogImg blogImg);


}
